import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Application {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("beans.xml");

        Student student = ctx.getBean("student", Student.class);
        System.out.println(student.getName());
        System.out.println(student.getAge());
        System.out.println(student.getGender());
        System.out.println(student.getAddress());
        System.out.println(student.getBooks());
        System.out.println(student.getHobbes());
        System.out.println(student.getCard());
        System.out.println(student.getInfo());
        System.out.println(student);
    }
}
